package com.ludum.game.map;

import java.util.ArrayList;

import com.ludum.game.rendering.Drawable;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Vector2;

public class Map implements Drawable{

	private ArrayList<Block> l_block;
	private Vector2 spawn1;
	private Vector2 spawn2;
	
	public Map(ArrayList<Block> blocks,
			   Vector2 spawn1,
			   Vector2 spawn2){
		l_block = blocks;
		this.spawn1 = spawn1;
		this.spawn2 = spawn2;
	}
	
	public Vector2 getSpawn1(){
		return spawn1;
	}
	
	public Vector2 getSpawn2(){
		return spawn2;
	}

	public void draw(SpriteBatch batch){
		for (Block bloc: l_block){
			bloc.draw(batch);
		}
	}
}
